home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Form1"
- ClientHeight = 1290
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 2220
- Height = 1695
- Left = 1035
- LinkTopic = "Form1"
- ScaleHeight = 1290
- ScaleWidth = 2220
- Top = 1140
- Width = 2340
- Begin CommandButton Command1
- Caption = "Command1"
- Height = 495
- Left = 360
- TabIndex = 0
- Top = 300
- Width = 1215
- End
- 'Option Explicit
- Sub Command1_Click ()
- Dim APPXL As object
- Dim XL As object
- Dim WS As object
- Set APPXL = GetObject(, "Excel.Application")
- Set XL = APPXL.Application
- For i = 1 To XL.worksheets.count
- Set WS = XL.worksheets(i)
- MsgBox WS.name
- End Sub
-